package com.nana.petadventure.pe
{
	import org.cove.ape.Group;
	import org.cove.ape.RectangleParticle;
	
	public class WallGroup extends Group
	{
		private var top:RectangleParticle;
		private var bottom:RectangleParticle;
		
		// 天花板和地板
		public function WallGroup(collideInternal:Boolean=false)
		{
			super(collideInternal);
			top = new RectangleParticle(480,-10,960,20,0,true,1,0);	// 以中心作为坐标
			this.addParticle(top);
			top.sprite.cacheAsBitmap = true;
			bottom = new RectangleParticle(480,630,960,20,0,true,1,0,0.5);
			this.addParticle(bottom);
			bottom.sprite.cacheAsBitmap = true;
		}
	}
}